/*
 * Copyright © 2018 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*/

@import "../../../../../../styles/variables.scss";
$details-row-border-color: $grey-05;
$label-width: 150px;
$shield-color: $grey-03;

.profile-detail-view {
  .detail-view-content {
    .view-details-label {
      cursor: pointer;
      display: flex;
      align-items: center;

      .icon-svg {
        font-size: 1.3rem;
      }

      > span {
        color: $blue-03;
      }
    }

    .details-content {
      margin-top: 25px;

      > h5 {
        margin-bottom: 20px;
      }

      .details-table {
        display: grid;
        grid-template-columns: repeat(3, 33%);
        grid-auto-rows: 40px;
        grid-gap: 0px 20px;

        .details-row {
          display: flex;
          justify-content: space-between;
          align-items: center;
          border-bottom: 1px solid $details-row-border-color;

          &:nth-child(1),
          &:nth-child(2),
          &:nth-child(3) {
            border-top: 1px solid $details-row-border-color;
          }

          > .label-holder {
            width: $label-width;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
          }

          > .value-holder {
            display: block;
            width: calc(100% - #{$label-width});
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            padding-left: 10px;

            .secure-key {
              > div {
                display: inline-block;
                margin-left: 5px;

                .icon-svg {
                  font-size: 16px;
                  color: $shield-color;
                  vertical-align: text-bottom;
                }
              }
            }
          }
        }
      }
    }
  }
}
